/*
============================================================================
Name        : LuaUIDocument.cpp
Author      : Jian
Version     :
Copyright   : Jian
Description : Application document class (model)
============================================================================
*/

// INCLUDE FILES
#include "LuaUIAppUi.h"
#include "LuaUIDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CLuaUIDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CLuaUIDocument* CLuaUIDocument::NewL( CEikApplication&
                                     aApp )
{
    CLuaUIDocument* self = NewLC( aApp );
    CleanupStack::Pop( self );
    return self;
}

// -----------------------------------------------------------------------------
// CLuaUIDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CLuaUIDocument* CLuaUIDocument::NewLC( CEikApplication&
                                      aApp )
{
    CLuaUIDocument* self =
        new ( ELeave ) CLuaUIDocument( aApp );

    CleanupStack::PushL( self );
    self->ConstructL();
    return self;
}

// -----------------------------------------------------------------------------
// CLuaUIDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CLuaUIDocument::ConstructL()
{
    // No implementation required
}

// -----------------------------------------------------------------------------
// CLuaUIDocument::CLuaUIDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CLuaUIDocument::CLuaUIDocument( CEikApplication& aApp )
: CAknDocument( aApp )
{
    // No implementation required
}

// ---------------------------------------------------------------------------
// CLuaUIDocument::~CLuaUIDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CLuaUIDocument::~CLuaUIDocument()
{
    // No implementation required
}

// ---------------------------------------------------------------------------
// CLuaUIDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CLuaUIDocument::CreateAppUiL()
{
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return ( static_cast <CEikAppUi*> ( new ( ELeave )
        CLuaUIAppUi ) );
}

// End of File
